/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSAIDAINTERNACAO")
public class TipoSaidaInternacaoProteu implements Serializable{

    @Id
    @Column(name="TSI_ST_CODIGO")
    private String tsiStCodigo;
    @Column(name="TSI_ST_DESCRICAO")
    private String tsiStDescricao;

    public String getTsiStCodigo() {
        return tsiStCodigo;
    }

    public void setTsiStCodigo(String tsiStCodigo) {
        this.tsiStCodigo = tsiStCodigo;
    }

    public String getTsiStDescricao() {
        return tsiStDescricao;
    }

    public void setTsiStDescricao(String tsiStDescricao) {
        this.tsiStDescricao = tsiStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipoSaidaInternacaoProteu other = (TipoSaidaInternacaoProteu) obj;
        if ((this.tsiStCodigo == null) ? (other.tsiStCodigo != null) : !this.tsiStCodigo.equals(other.tsiStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.tsiStCodigo != null ? this.tsiStCodigo.hashCode() : 0);
        return hash;
    }



}
